﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="MemberProductEdit.aspx.cs" Inherits="Member_Trade_MemberProductEdit"
    Title="修改我加入的产品库" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="Server">

    <script type="text/javascript">
    function $(id){
      name="ctl00$ContInfo$"+id;
      return document.getElementById(name); }
    function check()
    {
         if($("txtCompanyName").value=="")
         {
            document.getElementById("lblCompanyName").innerHTML="公司不能为空";
            return false;
         }
         if($("txtLinkName").value=="")
         {
            document.getElementById("lblLinkName").innerHTML="联系人不能为空";
            return false;
         }
         if($("txtPhone").value=="")
         {
             document.getElementById("lblPhone").innerHTML="电话不能为空";
            return false;
         }
         else
         {
            var s =$("txtPhone").value; 
            var pattern=/^\d{11}$/;
            var me = false;    
            if (pattern.test(s)) me=true;    
            if (!me)
            { 
                document.getElementById("lblPhone").innerHTML="电话号码格式不正确,如:03518905607";
                return false;  
            } 
            return true;
         }
            
         if($("txtAsk").value=="")
         { 
             document.getElementById("lblAsk").innerHTML="要求不能为空";
             return false;
         }
     }
    </script>
<div class="inkg mar_top">
        <table border="0" cellpadding="0" cellspacing="0" class="addtb">
            <thead>
                <tr>
                    <td colspan="2">
                        申请加入产品库
                    </td>
                </tr>
            </thead>
            <tbody>
            <tr>
                <td width="16%" class="tblt">
                    公司名称：
                </td>
                <td >
                    <span>
                        <asp:TextBox ID="txtCompanyName" runat="server" Width="200px"></asp:TextBox></span>
                    <div id="lblCompanyName" style="color: Red; text-align: center;">
                    </div>
                </td>
            </tr>
            <tr>
                <td class="tblt">
                    联系人：
                </td>
                <td >
                    <span>
                        <asp:TextBox ID="txtLinkName" runat="server" Width="200px"></asp:TextBox></span>
                    <div id="lblLinkName" style="color: Red; text-align: center;">
                    </div>
                </td>
            </tr>
            <tr>
                <td class="tblt">
                    联系电话：
                </td>
                <td >
                    <span>
                        <asp:TextBox ID="txtPhone" runat="server" Width="200px"></asp:TextBox></span>
                    <div id="lblPhone" style="color: Red; text-align: center;">
                    </div>
                </td>
            </tr>
            <tr>
                <td class="tblt">
                    要求：
                </td>
                <td >
                    <span>
                        <asp:TextBox ID="txtAsk" runat="server" TextMode="MultiLine" Height="108px" Width="277px"></asp:TextBox><br />
                        <font color="red">按天数收费,管理员会根据您的要求与您联系</font></span><div id="lblAsk" style="color: Red;">
                        </div>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" style="height: 45px; border-bottom: 1px #CCCCCC solid;">
                    <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClientClick="javascript: return check()"
                        OnClick="btnSubmit_Click" CssClass="i_button" />
                    <asp:Button ID="btnReset" runat="server" Text="取消" OnClick="btnReset_Click" CssClass="i_button" />
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
